package com.example.springclouduserserver.response;

/**
 * 这个类定义了返回的json格式，即json含有哪些字段
 */
public class JsonResult {
    private int code;
    private String message;
    private Object data;
    private String token;

    public JsonResult(int status, String message, Object data, String token) {
        this.code = status;
        this.message = message;
        this.data = data;
        this.token = token;

    }

    public String getToken() {
        return token;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public Object getData() {
        return data;
    }
}

